package com.sntk.organauthomanager.application.dto;

import com.sntk.organauthomanager.infrastructure.validation.Update;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;

/**
 * @ClassName: UserPwd
 * @author: wgchao
 * @createTime: 2020/7/21 10:33 AM
 * @Description: TODO
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class UserPwd implements Serializable {
    @NotBlank(message = "旧密码不能为空", groups = Update.class)
    private String oldPwd;
    @NotBlank(message = "新密码不能为空", groups = Update.class)
    private String newPwd;
}
